#{extends 'main.html' /}
#{set title:'add_service.html' /}

Here goes your content.

public class Service extends Model {
    @Required
    public User provider;
	
    public User consumer;
    
	@Required
    public String title;
    
    @Required
    @Lob
    public String description;
    
    public String image;
    
    public Timestamp creationDate;
    
    @OneToMany
    public List<Comment> comment;
    
    public String status;
    public boolean provided;
    public boolean consumed;
    
    @OneToMany
    public List<User> candidate;
    
    @OneToMany
    public List<Rating> rating;
    

		<div class="creation round box small" id="sign_up_box">
		<h3>Add a Service</h3>
		<form id="form_sign_up" action="@{Serivices.add()}" method="POST">
		
		    <table width="100%" cellspacing="0" cellpadding="0">
		        <tr>
		            <td><input id="name" type="text" name="name" class="validate[required]" placeholder="Name"/></td>
		        </tr>
		        <tr>
		            <td><input id="surname" type="text" name="surname" class="validate[required]" placeholder="Surname"/></td>
		        </tr>
		        <tr>
		            <td><input id="username" type="text" name="username" class="validate[required]" placeholder="Username"/></td>
		        </tr>
		        <tr>
		            <td><input id="password" type="password" name="password" class="validate[required]" placeholder="Password"/></td>
		        </tr>
		        <tr>
		            <td><input id="email" type="text" name="email" class="validate[required,custom[email]]" placeholder="Email" /></td>
		        </tr>
		        <tr>
		            <td>
		            	<img src="@{Application.captcha(randomID)}" />
    					<br />
    					<input type="text" name="code" id="code" size="18" value="" />
    					<input type="hidden" name="randomID" value="${randomID}" />
    				</td>
		        </tr>  

		        <tr>
		            <td align="right" colspan="2">
		                <input type="submit" value="Register" />
		            </td>
		        </tr>
		    </table>
		
		</form>
		</div>
		